home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 081 / point.arc / POINT.BAT < prev   
Encoding:
DOS Batch File  |  1987-10-26  |  1.4 KB  |  49 lines

  1. Echo Off
  2.  
  3. Rem
  4. Rem   This file is a very simple batch file for running BT as a point
  5. Rem   system.  All it does is start up BT waiting for it to exit with
  6. Rem   The errorlevel indicating that the system should start sending
  7. Rem   mail.  When that signal is received, the ConfMail program is run
  8. Rem   to export any echomail, and oMMM is run to properly ARC it to the
  9. Rem   boss node.  Note also that the ErrorLevel of 201 is trapped by
  10. Rem   the batch file - this is in case BT exits with an ErrorLevel that
  11. Rem   is unexpected, but is not the proper ErrorLevel for creating mail.
  12. Rem   All ErrorLevel checking has to be done in decreasing order due to
  13. Rem   an MS-DOS limitation.
  14. Rem
  15. Rem   Edit this file to your heart's content.  It is meant as a sample
  16. Rem   only.  It should be good for MOST point applications, but by no
  17. Rem   means will be good for all!
  18. Rem
  19.  
  20. :Top
  21. BT Unattended
  22. If ErrorLevel 201 Goto Top
  23. If ErrorLevel 200 Goto Mail_Out
  24.  
  25. Rem
  26. Rem   If we got here, then it means we should exit and return to DOS.
  27. Rem
  28.  
  29. Goto Off_Bottom
  30.  
  31. Rem
  32. Rem   If we got here, then it is time to export the echomail and run oMMM
  33. Rem
  34.  
  35. :Mail_Out
  36. ConfMail Export -O C:\Bink\OutBound
  37. oMMM -IC:\Bink\Binkley.Prm -MC:\Bink\Matrix -HC:\Bink\Outbound -CC:\Bink\BinkRout.Ctl
  38. Goto Top
  39.  
  40. Rem
  41. Rem   Time to get out
  42. Rem
  43.  
  44. :Off_Bottom
  45. C:
  46. CD \Bink
  47. ConfMail Import -N -K -F Echo.Out -A Pkxarc
  48. ConfMail Maint -F Echo.Out
  49.